package com.pine.dbant.common.plugin;

import com.pine.dbant.common.model.ConnectionInfo;
import com.pine.sunflower.core.LifeCycled;

import javax.sql.DataSource;

/**
 * @author xiaoyuan
 * @create 2022/11/17
 **/
public interface DynamicDataSource extends LifeCycled {


    /**
     * 关闭连接池
     * @param connId
     */
    void closeDataSource(String connId);

    /**
     * 获取连接池信息
     *
     * @param connectionInfo@return
     */
    DataSource getDataSource(ConnectionInfo connectionInfo);
}
